package com.greenold.customer.service.impl;

import java.util.List;

import com.greenold.customer.domain.Dto.WechatCustomerDto;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.greenold.customer.mapper.WechatCustomerMapper;
import com.greenold.customer.domain.WechatCustomer;
import com.greenold.customer.service.IWechatCustomerService;

/**
 * 客户信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-10-14
 */
@Service
public class WechatCustomerServiceImpl implements IWechatCustomerService 
{
    @Autowired
    private WechatCustomerMapper wechatCustomerMapper;

    /**
     * 查询客户信息
     * 
     * @param id 客户信息主键
     * @return 客户信息
     */
    @Override
    public WechatCustomer selectWechatCustomerById(String id)
    {
        return wechatCustomerMapper.selectWechatCustomerById(id);
    }

    /**
     * 查询客户信息列表
     * 
     * @param wechatCustomer 客户信息
     * @return 客户信息
     */
    @Override
    public List<WechatCustomer> selectWechatCustomerList(WechatCustomer wechatCustomer)
    {
        return wechatCustomerMapper.selectWechatCustomerList(wechatCustomer);
    }
/*
*
* @param wechatCustomer
* @return 列表
* */
    @Override
    public List<WechatCustomerDto> selectWechatCustomerDtoList(WechatCustomer wechatCustomer) {
        return wechatCustomerMapper.selectWechatCustomerListDto(wechatCustomer);
    }

    /**
     * 新增客户信息
     * 
     * @param wechatCustomer 客户信息
     * @return 结果
     */
    @Override
    public int insertWechatCustomer(WechatCustomer wechatCustomer)
    {
        return wechatCustomerMapper.insertWechatCustomer(wechatCustomer);
    }

    /**
     * 修改客户信息
     * 
     * @param wechatCustomer 客户信息
     * @return 结果
     */
    @Override
    public int updateWechatCustomer(WechatCustomer wechatCustomer)
    {
        return wechatCustomerMapper.updateWechatCustomer(wechatCustomer);
    }

    /**
     * 批量删除客户信息
     * 
     * @param ids 需要删除的客户信息主键
     * @return 结果
     */
    @Override
    public int deleteWechatCustomerByIds(String[] ids)
    {
        return wechatCustomerMapper.deleteWechatCustomerByIds(ids);
    }

    /**
     * 删除客户信息信息
     * 
     * @param id 客户信息主键
     * @return 结果
     */
    @Override
    public int deleteWechatCustomerById(String id)
    {
        return wechatCustomerMapper.deleteWechatCustomerById(id);
    }
}
